import Vue from 'vue'
import Vuex from 'vuex'
// 导入store模块
import adminInfo from "@/store/adminInfo";
import userManage from "@/store/userManage";
import createPersistedState from 'vuex-persistedstate';

Vue.use(Vuex)

export default new Vuex.Store({
  // 加载持久化插件
  plugins: [createPersistedState({storage: window.sessionStorage})],
  modules: {
    adminInfo,
    userManage
  }
})
